﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;

namespace YJKRevitRampModule.CreateRampByDoor
{
	public class DoorFilter : ISelectionFilter
	{
		public bool AllowElement(Element elem)
		{
			return elem.Category != null && !(null == elem.Category.Id) && elem.Category.Id.IntegerValue == -2000023;
		}

		public bool AllowReference(Reference reference, XYZ pos)
		{
			return false;
		}
	}
}
